<template>
  <div class='container'> <el-dialog  title="修改目录" width="600px" :visible="editShow" >
 <el-form ref="fromRef"  :model="myform" label-width="80px">
  <el-form-item label="所属学科"  prop="subjectID" >
   <el-select v-model="myform.subjectID" placeholder="请选择" >
    <!-- <el-option
      v-for="item in option"
      :key="item.value"
      :label="item.label"
      :value="item.value">
    </el-option> -->
  </el-select></el-form-item>
  <el-form-item label="目录名称" prop="directoryName">
    <el-input v-model="myform.directoryName"  ></el-input>
  </el-form-item>
   <el-form-item>
        <el-button>取消</el-button>
        <el-button  type="primary">确定</el-button>
      </el-form-item>
  </el-form>
    </el-dialog>
  </div>
</template>

<script>

export default {
  // 控制面板的显示与隐藏
  props: ['myform', 'editShow'],
  data () {
    return {
      // form 新增目录的数据
      myform: {
        subjectID: '',
        directoryName: ''
      }
    }
  },
  methods: {
  }
}
</script>

<style scoped lang='less'></style>
